<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理员详情</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="images/main.css">

  </head>
  
  <body>
    <div class="mainBox">
    <form action="addManager" method="post">
    <s:textfield name="manager.manId" type="hidden" theme="simple"></s:textfield>
    <s:textfield name="manager.manPassword" type="hidden" theme="simple"></s:textfield>
    <s:textfield name="manager.manCreateTime" type="hidden" theme="simple"></s:textfield>
    <s:textfield name="manager.manLastLoginTime" type="hidden" theme="simple"></s:textfield>
    	<table class="table_style" cellpadding="3" cellspacing="1" border="0">
    		<tr><td class="td_style2">登录名:&nbsp;</td><td class="td_style">
    		<s:if test="option == 'enter'">
    		<s:textfield name="manager.manLoginName" id="loginName" cssClass="text" theme="simple" disabled="false"></s:textfield>
    		</s:if><s:else>
    		<s:textfield name="manager.manLoginName" id="loginName" type="hidden" theme="simple" disabled="false"></s:textfield>
    		<s:textfield name="manager.manLoginName" id="loginName1" cssClass="text" theme="simple" disabled="true"></s:textfield>
    		</s:else>
    		</td></tr>
    		<tr><td class="td_style1">姓名:&nbsp;</td><td class="td_style"><s:textfield name="manager.manName" id="manName" cssClass="text" theme="simple"></s:textfield></td></tr>
    		<tr><td class="td_style2">性别:&nbsp;</td><td class="td_style"><s:set var="sex" value="#{'男':'男','女':'女'}"/>
    		<s:radio list="sex" name="manager.manSex" id="sex" cssClass="radio" theme="simple"></s:radio></td></tr>
    		<tr><td class="td_style1">联系电话:&nbsp;</td><td class="td_style"><s:textfield name="manager.manTEL" id="tel" cssClass="text" theme="simple"></s:textfield></td></tr>
    		<tr><td class="td_style2">用户类型:&nbsp;</td><td class="td_style"><s:set var="type" value="#session.SESSION_MANAGER_TYPE"/>
    		<s:select list="type" listKey="manTypeId" listValue="manTypeName" name="manager.manType.manTypeId" id="manType" cssClass="text" theme="simple"></s:select></td></tr>
    		<tr><td class="td_style1">是否启用:&nbsp;</td><td class="td_style"><s:set var="isUsed" value="#{'0':'不启用','1':'启用'}"/>
    		<s:radio list="isUsed" name="manager.manState" id="isUsed" cssClass="radio" theme="simple"></s:radio></td></tr>
    		<tr><td class="td_style"></td><td class="td_style">&nbsp;<input type="submit" value="确认保存" class="buttons" />
				<input type="reset" value="重新输入" class="buttons" style="margin-left:50px" /></td></tr>
    	</table>
    </form>
    </div>
  </body>
</html>
